package com.draw.cli.webclient;

/**
 * http://jaitechwriteups.blogspot.fr/2007/04/webservice-client-using-dynamic-proxy.html
 */

import java.net.MalformedURLException;

import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;

import com.draw.webinterface.WordInterface;

public class WordClient extends Client {
	static WordInterface wordInterface = null;

	public static WordInterface getInstance() throws MalformedURLException, WebServiceException {
		if (wordInterface == null || Client.isConfigChanged()) {
			Service service = getService("WordService");
			wordInterface = service.getPort(WordInterface.class);
		}
		return wordInterface;
	}
}
